package com.fhz.day005;

import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;

import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.ActivityComponent;
import dagger.hilt.android.components.ApplicationComponent;

/**
 * 时间:2022/3/24
 *
 * @author msfeng
 * 简述: TODO
 */
@Module
@InstallIn(ApplicationComponent.class)
public abstract class PersonModule {

    @Binds
    @Teach
    @Singleton
    public abstract Person getPerson(Teacher teacher);

//    @Binds
//    @Named("student")
//    public abstract Person getPerson1(Student student);
}

